// 自动生成模板SysOperationRecord
package model

import "perfect-vue-admin/global"

// 如果含有time.Time 请自行import time包
type SysOperationRecord struct {
	global.GVA_MODEL
	Ip           string        `json:"ip" form:"ip" gorm:"column:ip;comment:'请求ip'"`
	Desc 		 string 	   `json:"desc" form:"desc" gorm:"column:desc;comment:'操作描述'"`
	Location 	 string 	   `json:"location" form:"location" gorm:"column:location;comment:'操作地址'"`
	Method       string        `json:"method" form:"method" gorm:"column:method;comment:''"`
	Path         string        `json:"path" form:"path" gorm:"column:path;comment:''"`
	Status       int           `json:"status" form:"status" gorm:"column:status;comment:''"`
	Latency      string 	   `json:"latency" form:"latency" gorm:"column:latency;comment:'耗时'"`
	Agent        string        `json:"agent" form:"agent" gorm:"column:agent;comment:''"`
	ErrorMessage string        `json:"error_message" form:"error_message" gorm:"column:error_message;comment:''"`
	Body         string        `json:"body" form:"body" gorm:"type:longtext;column:body;comment:'请求Body'"`
	Resp         string        `json:"resp" form:"resp" gorm:"type:longtext;column:resp;comment:'响应Body'"`
	Browser 	 string 	   `json:"browser" form:"browser" gorm:"column:browser;comment:'浏览器'"`
	Os 	 		 string 	   `json:"os" form:"os" gorm:"column:os;comment:'操作系统'"`
	Platform 	 string 	   `json:"platform" form:"platform" gorm:"column:platform;comment:'平台'"`
	//UserID       int           `json:"user_id" form:"user_id" gorm:"column:user_id;comment:''"`
	Username      string       `json:"username" form:"username" gorm:"column:username;comment:'操作用户'"`
	//User         SysUser       `json:"user"`
}
